#if !defined(AFX_PAGETK_H__969A5F54_15DC_4E7F_91E3_49311489BB77__INCLUDED_)
#define AFX_PAGETK_H__969A5F54_15DC_4E7F_91E3_49311489BB77__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PageTK.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPageTK dialog
#include "MyButton.h"
#include "EditListCtrl.h"

class CPageTK : public CDialog
{
// Construction
public:
	void inicombo();
	BOOL findtheitem(CString zhsh,CString oldnum,CString num);
	int GetListItem(int uord=-1);
	void ResetRecord();
	void GetRecord();
	void InitListCtrl();
	void InitEdit();
	CPageTK(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CPageTK)
	enum { IDD = IDD_DIALOG_TK };
	CComboBox	m_combo_zhshmark;
	CComboBox	m_combo_zhishi;
	CEditListCtrl	m_list;
	CString	m_content;
	CXPButton	m_Ctn1;
	CXPButton	m_Ctn2;
	CXPButton	m_Ctn3;
	CXPButton	m_Ctn4;
	CXPButton	m_Ctn5;
	CXPButton	m_Ctn6;
	CXPButton	m_Ctn7;
	CString	m_num;
	CString	m_zhishi;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPageTK)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPageTK)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonLast();
	afx_msg void OnButtonModify();
	afx_msg void OnButtonNext();
	afx_msg void OnButtonOut();
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonDel();
	afx_msg void OnBUTTONSEARcH();
	afx_msg void OnButtonExit();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnXzdel();
	afx_msg void OnXzquery();
	afx_msg void OnBUTTONrefresh();
	afx_msg void OnClickListTk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclickListTk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeydownListTk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	afx_msg void OnEditchangeCOMBOzhishi();
	afx_msg void OnEditchangeCOMBOzhshmark();
	afx_msg void OnKillfocusCOMBOzhishi();
	afx_msg void OnKillfocusCOMBOzhshmark();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int i;
	int j;
	CString m_ti;
	CString m_tao;
	CString m_zhsh_cn;
	CString m_answer;
	
	_variant_t holder;
	_variant_t var;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PAGETK_H__969A5F54_15DC_4E7F_91E3_49311489BB77__INCLUDED_)
